<template>
  <div>
    <div>msg2:{{value}}</div>
    <button @click="change">重置msg</button>
  </div>
</template>

<script>
  export default {
    name: "son",
    model: {
      prop: 'value',
      event: 'resetMsg'
    },
    props: {
      value: [String]
    },
    methods: {
      change() {
        this.$emit('resetMsg', '重置')
      }
    }
  }
</script>

<style scoped>

</style>
